<html>
<head>
<script type="text/javascript">
	function doApply()
	{
		$('#form1').ajaxSubmit({
                dataType:'json',
                success:function(data){
                    alert(data);
                },
                error:function(xhr){
                    alert('上传失败!');
                }
            });
	}
		
	function onAfterSubmit(vret)
	{
		alert(vret);
	}
</script>	
</head>
<body>
<div>
	<form id="form1" method="post" enctype="multipart/form-data" action="${BASE_PATH}/file/file_upload">
    <input type="file" name="imgFile" id="imgFile">

    <input type="submit" value="上传" />
    <input type="button" value="确定" onclick="doApply();" />
    </form1>
</div>
</body>